#include<stdio.h>
int CalStrLen(char *s)
{
    int count=0;
    while(s[count]!='\0')
    {
        count++;
    }
    return count;
}

int IsEqual(char *s1,char *s2)
{
    if(CalStrLen(s1)!=CalStrLen(s2))
        return 0;
    while(*s1!='\0' && *s2!='\0')
    {
        if(*s1==*s2)
        {
            s1++;
            s2++;
        }
        else
        {
            return 0;
        }
    }
    return 1;
}

void StrCopy(char *dest,char *source)
{
    while(*source!='\0')
    {
        *dest=*source;
        dest++;
        source++;
    }
    *dest='\0';
}

int main()
{
    char a[10]={'h','e','l','l','o'};
    printf("%s\n",a);
    char b[10]="helloworld";
    printf("%s\n",b);
    char s[]="hello";
    printf("s size:%ld\n",sizeof(s));

    // s[1]='l';
    printf("%s\n",s);

    printf("s len:%d\n",CalStrLen(s));

    char s1[]="hello";
    printf("campare :%d\n",IsEqual(s,s1));

    char dest[10];
    printf("StrCopy:%s\n",(dest,s));

    return 0;
}